; Generated by Modix - Version 3.6.2 Macro A

M300 S666 P666 		; beep 
M291 S3 R"Probe height adjustment" P"Press OK to continue, or CANCEL to abort"
G4 P300				; wait 300ms

M564 H0 S0			; Negative movements are allowed
G91 				; relative movement
G1 Z10 F200			; lower bed by 5mm
G90 				; absolute movement

M401 				; deploy  the BLTouch probe pin
M291 S3 R"Attention!" P"Probe pin deployed. Verify the tip of the pin is lower than the nozzle"
M402 				; retract the BLTouch probe pin

M291 S3 R"Home all!" P"Press OK to home the X, Y and Z axis"

G28					; home all

M564 H0 S0			; Negative movements are allowed
M561 				; unload heightmap
G91 				; relative movement
G1 Z11 F200			; lower bed by 11mm
G90 				; absolute movement

G1 X100 Y100 F6000	; go to left corner
M300 S666 P666 		; beep

G4 P0 				; wait for all movements to complete
M300 S1111 P444 	; beep

M291 S2 R"Loosen the bolts holding the bracket" P"Place the jig beneath the probe and adjust the Z height until the nozzle almost touches the bed" Z1 ;
M300 S888 P444 		; beep
M291 S2 R"Tighten the bolts" P"Verify that the probe bracket is vertical and the bolts are tightened" ;

G4 S1 				; wait 1s
G91					; relative movement
G1 Z11 F200			; lower bed
G90					; absolute movement
M300 S1111 P666 	; beep 

M291 S3 R"You may proceed to the next step" P"Probe calibration has been completed" ;
M18					; release stepper motors